package com.huiminpay.transaction.api;

import com.huiminpay.common.cache.domain.BusinessException;
import com.huiminpay.paymentagent.api.dto.PaymentResponseDTO;
import com.huiminpay.transaction.api.dto.PayOrderDTO;
import com.huiminpay.transaction.api.dto.QRCodeDto;

/**
 * \* 交易订单相关服务接口
 */
public interface TransactionService {
    /**
     * \* 生成门店二维码
     * \* @param qrCodeDto，传入merchantId,appId、storeid、channel、subject、body
     * \* @return 支付入口URL，将二维码的参数组成json并用base64编码
     * \* @throws BusinessException
     */
    String createStoreQRCode(QRCodeDto qrCodeDto) throws BusinessException;

    PaymentResponseDTO submitOrderByAli(PayOrderDTO payOrderDTO) throws BusinessException;


    void updateOrderTradeNoAndTradeState(String tradeNo, String payChannelTradeNo, String state);


}
